<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Vue.js</title>
    <link rel="stylesheet" href="style.css"/>
    <script src="https://cdn.jsdelivr.net/npm/vue"></script>
</head>
<body>
<!--vue-app是根容器-->
<div id="vue-app">
    <h1> Computed 计算属性 </h1>
    <button @click="a++">Add to A</button>
    <button @click="b++">Add to B</button>
    <p>A - {{a}}</p>
    <p>B - {{b}}</p>

    <p>Age + A = {{addToA}}</p>
    <p>Age + B = {{addToB}}</p>

</div>

<script src="app.js"></script>
</body>
</html>